<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>添加商家</title>
		<link rel="stylesheet" href="css/main.css?v=1" />
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<script type="text/javascript" src="css/toastr.js"></script>
	</head>

	<body>
		<div class="_gis" id="gis" style="position: fixed; display: none; width: 100%; height: 100%; z-index: 999;">
			<a class="gis-close" href="javascript:void(0);">&times;</a>
			<iframe name="gis" style="width: 100%; height: 100%;" frameborder="0" src="gis.html"></iframe>
		</div>
		<div class="container" style="padding-top: 1em;">
			<div>
				<ul class="nav nav-tabs" role="tablist">

					<li role="presentation" class="active">
						<a href="#profile" aria-controls="profile" role="tab" data-toggle="tab">添加商家</a>
					</li>

				</ul>

				<!-- Tab panes -->
				<div class="tab-content">
					
					<div role="tabpanel" class="tab-pane active" id="profile">
						<div class="col-sm-6">
							<form action="photo/upload.do" method="post" enctype="multipart/form-data" class="form-horizontal" style="padding-top: 1em;">
								<div class="form-group">
									<label class="col-sm-2 control-label">店铺名称</label>
									<div class="col-sm-10">
										<input class="form-control" name="shopsName" type="text" placeholder="请输入商铺名称" />
									</div>
								</div>

								<div class="form-group">
									<label class="col-sm-2 control-label">店铺照片</label>
									<div class="col-sm-10">
										<input accept="image/*" class="hidden" type="file" name="imgFile" required="required" />
										<button type="button" class="btn btn-danger _img"><i class="fa fa-image"></i> 选择图片</button>
									</div>
								</div>

								

								<div class="form-group">
									<label class="col-sm-2 control-label">店铺说明</label>
									<div class="col-sm-10">
										<textarea name="shopsMemo" class="form-control"></textarea>
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label">店铺位置</label>
									<div class="col-sm-3">
										<input name="lng" readonly="readonly" placeholder="经度" class="_lng form-control" />
									</div>
									<div class="col-sm-3">
										<input name="lat" readonly="readonly" placeholder="纬度" class="_lat form-control" />
									</div>
									<div class="col-sm-3">
										<button class="_gis btn btn-default" type="button">选择</button>
									</div>
								</div>
								
								<div class="form-group">

									<div class="col-sm-10 col-sm-offset-2">
										<button class="btn btn-default">添加</button>
										<button type="reset" class="btn btn-default">重填</button>
									</div>
								</div>

							</form>

						</div>
						<div class="col-sm-6">
							<img id="imgShow" style="max-width: 300px; max-height: 300px; margin-top: 1em;" src="img/_noimg.png" class="img-thumbnail" />
							<div class="progress" style="display: none; margin-top: 1em;">
								<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%">
								</div>
							</div>
						</div>
						
						
						
						
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="shops-add.js"></script>
	</body>
</html>